package ChooseCourseLogic.ycoursemanagebl;

public class YcourseBLService_Driver {
	public void driver(YcourseBLService ycourseBLService){
    ResultMessage result = YcourseBLService.publish();
    if(result==ResultMessage.Succeed) 
    	System.out.println("Succeed!");
    else if(result==ResultMessage.Failed)
        System.out.println("Failed!");
    ResultMessage result1 = YcourseBLService.update();
    if(result1==ResultMessage.Succeed) 
    	System.out.println("Succeed!");
    else if(result1==ResultMessage.Failed)
        System.out.println("Failed!");
    YcourseBLService.endYcourse();
	}
public class Client(){
	public static void main(String[]args){
		YcourseBLService ycourseController = new YcourseController();
		YcourseBLService_Driver driver = new 
				YcourseBLService_Driver(ycourseController);
		driver.drive(ycourseController);
	}
}
}
